/*
 * @Author: 9ilk 3535851673@qq.com
 * @Date: 2025-03-08 22:49:47
 * @LastEditors: 9ilk 3535851673@qq.com
 * @LastEditTime: 2025-03-09 16:35:44
 * @FilePath: /zhuang/PollServer/Main.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

#include"PollServer.hpp"

int main(int argc,char*argv[])
{
    if(argc != 2)
    {
        cout << "Usage: " << argv[0] << " port:" << endl;
        return 1;
    }
    ENABLE_CONSOLE_LOG();
    uint16_t local_port = stoi(argv[1]);//端口
    unique_ptr<EpollServer> ssvr = make_unique<EpollServer>(local_port);
    ssvr->Init();
    ssvr->loop();
    return 0;
}